import { IsString, IsNotEmpty, Length, IsEmail } from 'class-validator';

export class CreateUserByEmailDto {
  @IsString()
  @IsNotEmpty()
  @IsEmail()
  readonly username: string;

  @IsString()
  @IsNotEmpty()
  @Length(8)
  readonly password: string;
}
